
class LivingEntity {
	protected int xcor,ycor, hp, mp=0;
	protected double vX, vY, aX, aY = 0;//8 cor value = 2 feet = 1 block value = 16 pixels 

	protected void move()
	{
		vX+=aX;
		vY+=aY;
		xcor+=16*(vX);
		ycor+=16*(vY);
	}
	protected void accelerate(double x, double y)
	{
		aX+=x;
		aY+=y;
	}
	protected void resistance()
	{
		vX*=.6;
		vY*=.6;
		aX*=.6;
		aY*=.6;
		if(Math.abs(aX)<.05){aX=0;}
		if(Math.abs(aY)<.05){aY=0;}
//<<<<<<< .mine
		if(Math.abs(vX)<.003){vX=0;}
		if(Math.abs(vY)<.003){vY=0;}
//=======
		if(Math.abs(vX)<.05){vX=0;}
		if(Math.abs(vY)<.05){vY=0;}
//>>>>>>> .r10
	}
}
